<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?php echo $ServerName; ?></title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<?php include "inc-javascript.php" ?>
</head>
<body class="wow">
<h1 id="technicalsupport"><?php echo $ServerName; ?></h1>
<div id="subbody">
<div id="technicaltitlebar">
<div id="titlestonebar"></div>
</div>
<table cellspacing="0" cellpadding="0" border="0" id="maintable">
<tr>
<td class="hprint"><span style="visibility:hidden;">.</span></td><td class="hprint" id="maintableleft"></td><td id="maintablecenter">
<div id="daBox">
<a id="technicallogo" href="<?php print $sitepath; ?>home.php"></a>
<div style="cursor: pointer; position:absolute" onclick="location.href='<?php print $sitepath; ?>home.php'" id="technicaltitle"></div>
<div id="searchhead"><form action="http://www.wowhead.com/">
<input name="search" type="text" id="srchinput"><input value="Search Items" type="submit" id="srchitem">
</form></div>
<div id="contactbar"><a onclick="showHideContact(); return false" title="" href="#">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<div class="contactbarright">
<span>How to Connect</span>
<div class="contactarrowdown" id="contactarrow"></div>
</div></td>
</tr>
</table>
</a></div>
<div onmouseout="clearEventTimeout('langlist')" onmouseover="initEventTimeout('langlist')" id="langselect">
<span>&nbsp;&nbsp;&nbsp;Jump:</span>
<div id="langlist"><?php include "jumptopage.php"; ?>
</div>
<div class="flagus" id="langselectflag"></div>
</div>
</div>

<div class="backplanetop">
<div class="backplanebottom">
<div class="backplaneleft">
<div class="backplaneright">
<div class="backplanetopleft">
<div class="backplanetopright">
<div class="backplanebottomleft">
<div class="backplanebottomright">
<table cellspacing="0" cellpadding="0" border="0" id="contenttable">
<tr>
<td rowspan="2" id="sidemenutd">
<?php include "inc-menu.php" ?>
<div id="quicklinks">
 <div class="sidemenuelementtop">
  <div id="quicklinkstitle">
   <h3 class="sifr-sidemenu" style="color:#FFFFFF">LATEST POSTS</h3>
  </div>
  <div id="quicklinkscontent">
   <ul class="quicklinkslist">
<?php
$GetLatestPosts = "SELECT * from b_posts where threadparent='0' order by telapsed DESC LIMIT 10";
$GetLatestPosts2 = mysql_query($GetLatestPosts, $forum);
while($GetLatestPosts3 = mysql_fetch_array($GetLatestPosts2))
{ 
	print "<li><a href=".$boardpath."index.php?forumID=$GetLatestPosts3[postforum]&ID=$GetLatestPosts3[ID]>$GetLatestPosts3[title]</a> <font size='-2' color='#2780C0'>($GetLatestPosts3[lastpost])</font></li>";		  
}
?>
   </ul>
  </div>
 </div>
 <div class="sidemenuelementbottom"></div>
</div>

<?php
if(isset($_SESSION['user']))
{
?>
<div id="quicklinks">
 <div class="sidemenuelementtop">
  <div id="quicklinkstitle">
   <h3 class="sifr-sidemenu" style="color:#FFFFFF">YOUR FRIENDS</h3>
  </div>
  <div id="quicklinkscontent">
   <ul class="quicklinkslist" style="margin-left:0px"><font color='white'>
    <?php
	$user = $_SESSION['user'];
    $GetUserInfo = "SELECT * from b_users where username = '$user'";
	$GetUserInfo2 = mysql_query($GetUserInfo, $forum);
	$GetUserInfo3 = mysql_fetch_array($GetUserInfo2);
	if ($GetUserInfo3['charid'] == 0) {
		print "<em>Add friends ingame and <a href='forum/usercp.php'><strong>select character</strong></a> to view your friend status.</em>";
	}
	else {
		$GetFriends = "SELECT friend_guid FROM social_friends WHERE character_guid = '$GetUserInfo3[charid]'";
		$GetFriends2 = mysql_query($GetFriends, $char);
		$GetFriends3num = mysql_num_rows($GetFriends2);
		if ($GetFriends3num <> 0) {
			while ($GetFriends3 = mysql_fetch_array($GetFriends2)) {
				$FriendGet = "SELECT name,race,class,gender,level,banned,online FROM characters WHERE guid = '$GetFriends3[0]'";
				$FriendGet2 = mysql_query($FriendGet, $char);
				$FriendGet3 = mysql_fetch_array($FriendGet2);
				$b = '';
				if ($FriendGet3[5] == 1) {
					$c = $BannedColor;
					$b = 'banned';
				}
				else {
					if ($aget3[6] == "0") {
						$c = $OnlineColor;
					}
					else {
						$c = $OfflineColor;
					}
				}
				print "<img src='".$sitepath."forum/images/race/$FriendGet3[1]-$FriendGet3[3].gif' width='12' height='12' /> ";
				print "<img src='".$sitepath."forum/images/class/$FriendGet3[2].gif' width='12' height='12' /> ";
				print "<a id='friend' href='./forum/profile.php?userID=".$GetUserInfo3['userID']."'><font color='$c'>$FriendGet3[0] ($FriendGet3[4]) $b</font></a><br />";
			}
		} 
		else { print "<em>You don't have any friends.<br>Add friends ingame to view your friend status.</em>";}
	}
    ?>
   </font></ul>
  </div>
 </div>
 <div class="sidemenuelementbottom"></div>
</div>
<?php } ?>

<div id="sidemenutdblocker"></div></td><td id="rightcontent">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="communitychannel_something">
<div class="topitems">
<div class="searchbar">
<?php
if(isset($_SESSION['user']))
{
	print "<div style=' height:20px; color:#FFFFFF; position: absolute; font-size:12px; padding-top:9px; padding-left:10px;'> Welcome ".$user."! ";
	include 'inc-mainlinks.php';
}
else
{
?>
      <div style='color:#FFFFFF; position: absolute; font-size:12px; padding-top:5px; padding-left:10px; height:20px'>
	  <form method="POST" action="<?php include "inc-form.php" ?>" >
	  <input type="text" name="user" size="25" style="background:#000033; border:solid 1px #0f5585; color:#FFFFFF; height:14px" />
	  <input type="password" name="password" size="25" maxlength="32" style="background:#000033; border:solid 1px #0f5585; color:#FFFFFF; height:14px" />
      <input type="submit" name="submit" value=" L o g i n " src="images/btn.gif" title="Logs you in system. You can manage server and forum account from here." style="height:18px; color:#FFFFFF; border:solid 1px #3d6692; font-size:10px; background-color:#063757"/>
     <img src="images/remember.gif" /><input type='checkbox' name='remember' /></form>
<?php } ?> 
</div>
</div>   

<div id="contactinfo">
<?php 
	include 'votebar.php';
	include 'connecttutorial.php';
?>
</div>
<div class="title">
<div class="titleleft"></div>
<div class="titlemiddle"></div>
<div class="titleright"></div>
<div id="newsicon"></div>
<div id="newstitle">
<h3 class="sifr-newstitle" id="newstitleh3">
<?php
include "inc-title.php"
?>
</h3>
</div>
</div>
</div>
<div class="whitepagetop">
<div class="whitepagecorner">
<div class="articles">
<div class="article">
<div style="width:704px" id="articlecontent">